import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);
export default new Router({
    routes: [
        {
            path: '/login',
            name: 'login',
            component: require('@/pages/login/Login').default
        },
        {
            path: '/main',
            name: 'main',
            component: require('@/components/frame/MainFrame').default,
            children: [
                {
                    path: '/home',
                    name: 'home',
                    component: require('@/pages/home/Home').default
                }
            ]
        },
        {
            path: '*',
            redirect: '/login'
        }
    ]
})
